const {defineConfig} = require('@vue/cli-service')

const address = require('address')
const host = address.ip() || '127.0.0.1'

module.exports = defineConfig({
    lintOnSave:false,
    transpileDependencies: true,
    devServer: {
        host: host,
        port: 8080,
        open: true,
        proxy: {
            '/api': {
                target: "http://127.0.0.1:8080",
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ""
                }
            }
        }
    }
})
